<?php
include 'db.php';

$message=addslashes($_GET['m']);
$sessionid=$_GET['s'];
$subject=$_GET['sj'];
$type=$_GET['t'];
$username=$_GET['u'];

if (mysql_query("INSERT INTO `messages` SET `username`='{$username}', `message`='{$message}', `sessionid`='{$sessionid}'"))
	echo "Said!";
mysql_close($link);
?>
